
// ensure that correct version is send to the client regardless to caching
// version: 2

  //async script, twitter button fashiolista.com style
  (function() {
   var s = document.createElement('SCRIPT');
   var c = document.getElementsByTagName('script')[0];
   s.type = 'text/javascript';
   s.async = true;
   s.src = 'http://platform.twitter.com/widgets.js';
   c.parentNode.insertBefore(s, c);
  })();

$(document).ready( function () {
    // pretty tips in inputs
    $(".search-text").each( function () {
        $(this).prop("value", objectL10n.search);
    });
    $(".search-text").each( function () {
        $(this).focus( function () {
            if ($(this).val() == objectL10n.search)
                $(this).prop("value", "");
        });
    });
    $(".search-text").each( function () {
        $(this).blur( function () {
            if ($(this).val() == "")
                $(this).prop("value", objectL10n.search);
        });
    });
});

